home *** CD-ROM | disk | FTP | other *** search
/ Trading on the Edge / Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin / pc / mac_file / vendor_d / neuralwa / nw2v50 / somwghts.igb < prev    next >
Text File  |  1993-08-23  |  2KB  |  88 lines

  1. inst4.1     !April, 1993
  2. !****************************************************************
  3. !*                                *
  4. !*    SOM Kohonen weights                      *
  5. !*                                *
  6. !****************************************************************
  7. !
  8.  
  9. @LLsl                !Load super-layer
  10. =n0    Lpes            !Number of layers
  11. =LayN    0
  12.  
  13. ! Look for first layer that learns
  14.  
  15. :Koh1
  16. =n1    LayN            !remember layer
  17. +LayN    1            !next layer
  18. ?LayN    n0
  19. >bgt    KohEnd            !past output layer
  20. @LLly                !load the layer
  21. ?Llrn    0            !is this a preprocessing layer?
  22. >bne    Koh2            !we are past the preprocessing layers
  23. >br    Koh1            !next layer
  24.  
  25. :Koh2
  26. =n4    Lpes            !remember #PEs in Kohonen layer
  27. =n5    Lpes            !
  28. /n5    LDnr            !# cols
  29. =n6    LDnr            !# rows
  30.  
  31. =SPEl    LayN            !set up as selected (dest) layer
  32.  
  33. !Load previous layer
  34. =LayN    n1
  35. @LLly
  36. =n3    Lpes            !remember #PEs
  37. =NPEl    LayN            !set up as near (source) layer
  38.  
  39. ! Add probe
  40. =PNam    "SOMWts"        !probe name
  41. @PbAS                !Add Probe
  42. @PbDC                !Delete all components
  43. @PALC                !Layer Connections
  44.  
  45. ! Now build the instrument
  46. @ILdD                !load default instrument
  47. =ITit    "SOM Weights"        !Instrument title
  48. =IGTy    "Hinton"        !Graph Type
  49. =IGVr    "Weight"        !Variable
  50. =ITTy    "RMS"            !RMS Transformation Type
  51. =ITMd    0            !No transformation
  52. =IEpc    0            !No epoch
  53.  
  54. =Ignx    n3
  55. *Ignx    n5
  56. =Inpl    n4
  57. *Inpl    n3
  58. =Iwdt    7
  59. *Iwdt    n3
  60. ?Iwdt    140
  61. >bgt    Koh4
  62. =Iwdt    140
  63. :Koh4
  64. =Ihgt    7
  65. *Ihgt    n6
  66. ?Ihgt    100
  67. >bgt    Koh5
  68. =Ihgt    100
  69. :Koh5
  70.  
  71. =IGC1    IGC0            !show negative as unfilled
  72. =Ivmn    -1.0
  73. =Ivmx    1.0
  74. =ILnA    1            !Active in Learn
  75. =IRcA    0            !Inactive in recall
  76. =ILDv    100            !Every 100 iterations
  77. =ILRm    0
  78. =IRDv    0
  79. =IRRm    0
  80. =IPrb    PNam            !Point to probe
  81. =ICAc    0            !Convergence criterion inactive
  82. =ICTh    0.0            !Convergence Threshold
  83. !Let NeuralWorks figure out where to put instrument
  84. =x    0
  85. =y    0
  86. @IAdd                !Now create instrument
  87. :KohEnd
  88.